import service from '@/utils/request'

const TimeTemplateApi = {
  listTimeTemplate: function (data) {
    return service.get('goodsHoursModel/page', { params: data })
  },
  addTimeTemplate: function (data) {
    return service.post('goodsHoursModel', data)
  },
  editTimeTemplate: function (data) {
    return service.put('goodsHoursModel', data)
  },
  deleteTimeTemplate: function (data) {
    return service.put('goodsHoursModel/delete', data)
  },
  getTimeTemplateInfo(data) {
    return service.get('goodsHoursModel', { params: data })
  },
  batchSetModel(data) {
    return service.put('goodsHoursModel/batchSetModel ', data)
  },
  listIdName(data){
    return service.get('goodsHoursModel/listIdName', {params:data})
  },
  UpdateTimeTemplate: function (data) {
    return service.put('goodsHoursModel/updateState', data)
  },
}

export default TimeTemplateApi